import Vue from "vue";
import VueRouter from "vue-router";
import { constantRouter, asyncRouter, anyRouter } from "./routes";
Vue.use(VueRouter);

const router = new VueRouter({
  scrollBehavior: () => ({ y: 0 }),
  routes: [...constantRouter, ...asyncRouter, ...anyRouter],
});

export default router;
